MailPoet\Subscribers\ImportExport\Import\Import A

Total Complexity 74
Dependencies 18
Dependents 1
Total lines 513
Lines of code 412
Logical lines of code 207
Comment lines 27
Methods 19
Properties 16

Methods 19

Method Rating Maintainability Complexity Lines of code
validateSubscribersData()
A
44 13 46
process()
A
40 11 63
createOrUpdateSubscribers()
A
44 8 46
createOrUpdateCustomFields()
A
45 7 45
splitSubscribersData()
S
49 5 34
setSubscriptionStatusToDefault()
S
59 4 15
addSubscribersToSegments()
S
54 3 24
validateImportData()
S
58 3 16
deleteExistingTrashedSubscribers()
S
60 3 14
validateDateTime()
S
61 3 13
__construct()
S
49 1 31
addField()
S
63 2 11
getSubscribersFields()
S
66 2 9
getCustomSubscribersFields()
S
67 2 9
addMissingRequiredFields()
S
70 2 6
transformSubscribersData()
S
68 2 7
setSource()
S
64 1 10
setLinkToken()
S
64 1 10
synchronizeWPUsers()
S
78 1 3